package com.zcl.javaClassAndObject.inheritance;

/**
 * @Description:
 * @author: zcl
 * @date: 2021/12/10  11:03
 */
public class Cleanser {

    private String s = new String("Cleanser");
    public void append(String a) { s += a; }
    public void dilute() { append(" dilute()"); }
    public void apply() { append(" apply()"); }
    public void scrub() { append(" scrub()"); }
    public void print() { System.out.println(s); }
    public static void main(String[] args) {
        Cleanser x = new Cleanser();
        x.dilute(); x.apply(); x.scrub();
        x.print();
    }
}

